function pwdCheck(){
var pro = document.pwd
if(pro.pass1.value == ""){
alert("Enter your Password!");
return false;
}
if(pro.pass2.value == ""){
alert("Enter your New Password!");
return false;
}
if(pro.pass2.value != pro.pass1.value){
alert("Pass1 does not match with pas2");
return false;
}
return true;
}

function editclick(str){
var profi = document.prof
if(str == "add" && profi.addEdit.value=="Edit"){
	profi.add.disabled=false
	profi.addEdit.value="ok"
}
else if(str == "add" && profi.addEdit.value=="ok"){
	profi.add.disabled=true;
	profi.addEdit.value="Edit";
}

if(str == "pn" && profi.pnEdit.value=="Edit"){
	profi.pn.disabled=false;
	profi.pnEdit.value="ok";
}
else if(str == "pn" && profi.pnEdit.value=="ok"){
	profi.pn.disabled=true;
	profi.pnEdit.value="Edit";
}

if(str == "gen" && profi.genEdit.value=="Edit"){
	profi.Gen.disabled=false;
	profi.genEdit.value="ok";
}

else if(str == "gen" && profi.genEdit.value=="ok"){
	profi.Gen.disabled=true;
	profi.genEdit.value="Edit";
}

if(str == "birth" && profi.birEdit.value == "Edit"){
	profi.DateOfBirth_Year.disabled=false
	profi.DateOfBirth_Month.disabled=false
	profi.DateOfBirth_Day.disabled=false
	profi.birEdit.value = "ok"
}
else if(str == "birth" && profi.birEdit.value == "ok"){
	profi.DateOfBirth_Year.disabled=true
	profi.DateOfBirth_Month.disabled=true
	profi.DateOfBirth_Day.disabled=true
	profi.birEdit.value = "Edit"
}

}

function picUpload(){
	var obj = document.prof.pic;
	var picForm = document.getElementByid(cpic);
	picForm.src = obj
	picForm.submit();
}


